package org.nobject.common.fan;

import java.text.DecimalFormat;

public class ProgressUtils {

	private static DecimalFormat df = new DecimalFormat("0.00");

	/**
	 * showProgress
	 * 
	 * @param curPoint
	 * @param totalPoint
	 */
	public static void showProgress(String name, int curPoint, int totalPoint) {
		System.out.println("[" + name + "]:" + df.format(((curPoint + 0d) / totalPoint) * 100) + "%");
	}
}
